package com.bsierp.business.pojo;

import java.util.HashSet;
import java.util.Set;

/**
 * ProductGroup entity. @author MyEclipse Persistence Tools
 */

public class ProductGroup implements java.io.Serializable {

    // Fields

    private Integer productgroupId;
    private User user;
    private String productgroupName;
    private Set products = new HashSet(0);

    // Constructors

    /** default constructor */
    public ProductGroup() {
    }

    /** minimal constructor */
    public ProductGroup(User user, String productgroupName) {
        this.user = user;
        this.productgroupName = productgroupName;
    }

    /** full constructor */
    public ProductGroup(User user, String productgroupName, Set products) {
        this.user = user;
        this.productgroupName = productgroupName;
        this.products = products;
    }

    // Property accessors

    public Integer getProductgroupId() {
        return this.productgroupId;
    }

    public void setProductgroupId(Integer productgroupId) {
        this.productgroupId = productgroupId;
    }

    public User getUser() {
        return this.user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getProductgroupName() {
        return this.productgroupName;
    }

    public void setProductgroupName(String productgroupName) {
        this.productgroupName = productgroupName;
    }

    public Set getProducts() {
        return this.products;
    }

    public void setProducts(Set products) {
        this.products = products;
    }

}